package constructor.proxy.statics;

public class TeacherProxy implements ITeacher {

    ITeacher iTeacher;

    public TeacherProxy(ITeacher iTeacher) {
        this.iTeacher = iTeacher;
    }

    @Override
    public void teach() {
        System.out.println("喝茶");
        iTeacher.teach();
        System.out.println("上厕所");
    }
}
